package com.frog.queue.starter.sns.config;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wuqiong 2022/4/12
 * @description
 */
public class FrogInitializingSingleton implements SmartInitializingSingleton {

    @Autowired
    private SnsConfig snsConfig;

    @Override
    public void afterSingletonsInstantiated() {
        SnsEndpointFactory.createBatchByConfig(snsConfig);
    }
}
